-
Notifications
You must be signed in to change notification settings - Fork 44
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[#3535] Send messages to Whatsapp Cloud #3615
Conversation
@@ -184,7 +184,7 @@ void canSendTagEvents() throws Exception { | |||
private static StompSession connectToWs(int port) throws ExecutionException, InterruptedException { | |||
final WebSocketStompClient stompClient = new WebSocketStompClient(new StandardWebSocketClient()); | |||
MappingJackson2MessageConverter messageConverter = new MappingJackson2MessageConverter(); | |||
ObjectMapper objectMapper = new ObjectMapper().setPropertyNamingStrategy(PropertyNamingStrategy.SNAKE_CASE); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Also refactored this deprecated import
@@ -88,6 +88,7 @@ public List<KeyValue<String, SpecificRecordBase>> sendMessage(SendMessageRequest | |||
results.add(KeyValue.pair(getId(errorPayload).toString(), errorPayload)); | |||
} | |||
updateDeliveryState(message, DeliveryState.FAILED); | |||
results.add(KeyValue.pair(message.getId(), message)); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This fixes a sofar unknown bug
@Configuration | ||
public class MetaConfig { | ||
@Bean | ||
@Qualifier("metaObjectMapper") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
So far the meta-object mapper has been the same as ours in terms of config. It's better however to explicitly split them.
.build()) | ||
)); | ||
|
||
TimeUnit.SECONDS.sleep(5); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
with the following attributes
kafka.commit-interval-ms=0
kafka.cache.max.bytes=0
You should not need to wait that long, 100ms will be enough? Also there is other way to get around the sleep time?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just tested this and it doesn't make a difference. I think that this time is genuinely spent on catching up with the streams app.
resolves #3535